package spring.component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * User  yyl
 * Description: 仅用于 判断是单例还是多例
 * Created by yaoyonglong on 2018/11/1 9:33
 */

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyComponent {
    /**
     * prototype 表示多例
     * singleton 表示单例
     */
    public String scope();
}